Obsoleted Features

Many versions of the Music Object API have come and gone, and some significant changes in the API have occurred, leaving a good number of methods and properties either deprecated or completely unsupported. This section is provided to help developers in updating old sonification code to use the most current version of the Music Object API.

This section lists all methods and properties that have become unsupported, with explanations on how those methods and properties behaved and how newer methods and properties of the Music Object API can be used to achieve similar results. Wherever possible, explanations on how to update code are provided.

 Name   Short Description 
Instance Methods
engageAudio Provided a way to engage or disengage the audio device used by the player's underlying audio engine. Replaced by the functionally equivalent Music.engageAudio static method.
fadeFromTo Provided a way to fade the overall playback volume of a Music Object instance from a specified starting volume to a specified ending volume over a specified amount of time. Supplanted by the functionally equivalent fadeVolume instance method.
getNoteName Provided a way to convert a MIDI note number to a corresponding musical note name. Replaced by the functionally equivalent Music.getNoteName static method.
getNoteNumber Provided a way to convert a musical note name to a corresponding MIDI note number. Replaced by the functionally equivalent Music.getNoteNumber static method.
getPlatform Returned a string value, representing the user agent name of the user's browser. Replaced by the Music.clientPlatform static property.
getReverbType Returned an integer value, indicating the global reverb type that was set for the player's underlying audio engine. Replaced by the functionally equivalent Music.getReverbType static method.
getVersion Returned a string value, indicating the version number of the player installed in the user's browser. Replaced by the Music.playerVersion static property.
isReady Returned a boolean value, indicating whether or not a Music Object instance's player was ready for scripted control. Replaced by the functionally equivalent ready instance property.
playGroovoid Provided a convenient way to play Groovoids, simply by specifying the Groovoid name using a string parameter. This functionality was subsumed by the play instance method.
setGlobalMute Provided a way to mute or unmute the global audio output of the player's underlying audio engine. Replaced by the functionally equivalent Music.setGlobalMute static method.
setReverbType Provided a way to set the global reverb type for the player's underlying audio engine. Replaced by the functionally equivalent Music.setReverbType static method.
stopAll Provided a way to stop playback for all player instances in a single operation. Replaced by the Music.stopAll static method.
Static Properties
Music.ignoreNotReady A boolean property that specified whether or not error messages were to be sent to the debug output if scripting was targeted to a player instance that was not yet ready.
Music.platform A string property that represented the user's platform (operating system). Replaced by the functionally equivalent Music.clientPlatform static property.
Global Functions
mo_getNoteName Provided a way to convert a MIDI note number to a corresponding musical note name. Replaced by the functionally equivalent Music.getNoteName static method.
mo_getNoteNumber Provided a way to convert a musical note name to a corresponding MIDI note number. Replaced by the functionally equivalent Music.getNoteNumber static method.
mo_hasMinVersion Returned a boolean value, indicating whether or not the version of the player installed in the user's browser met the minimum version specified. Replaced by the functionally equivalent Music.hasMinVersion static method.
mo_installBeatnik Provided a way to explicitly launch the player installation process. Replaced by the functionally equivalent Music.installPlayer static method.
mo_isPlayerCompatible Provided a way to force Music Object to perform the compatibility test, even before any attempts were made in the authoring to embed player instances into the page. Replaced by the functionally equivalent Music.isPlayerCompatible static method.
mo_magicEmbed Provided a way to embed a non-scriptable player instance that was not associated to any Music Object instance. Replaced by the functionally equivalent Music.magicEmbed static method.
mo_promptClose Provided a way to close a prompt window that was opened by the mo_promptUser function. Replaced by the functionally equivalent Music.promptClose static method.
mo_promptUser Provided a way to open up a non-modal dialog window to prompt the user to make a decision. Replaced by the functionally equivalent Music.promptUser static method.
musicObject An object constructor that provided a way to create new Music Object instances. Replaced by the functionally equivalent Music object constructor.
Global Variables
mo_BeatnikType A string variable that indicated the type of browser component architecture used by the player. Replaced by the functionally equivalent Music.playerType static property.
mo_BeatnikVersion A string variable that indicated the version number of the player installed in the user's browser. Replaced by the functionally equivalent Music.playerVersion static property.
mo_browserSupported A boolean variable that indicated whether or not the user's browser was supported by the player. Replaced by the functionally equivalent Music.clientSupported static property.
mo_debugToAlert A boolean variable that specified whether or not error messages were to be displayed in alert boxes. Replaced by the functionally equivalent Music.debugToAlert static property of the Debug extension.
mo_debugToJavaConsole A boolean variable that specified whether or not error messages were to be displayed in the Java console. Replaced by the functionally equivalent Music.debugToJavaConsole static property of the Debug extension.
mo_debugToStatus A boolean variable that specified whether or not error messages were to be displayed in the window's status bar. Replaced by the functionally equivalent Music.debugToStatus static property of the Debug extension.
mo_enabled A boolean variable that acted as a "master switch" to enable or disable sonification of a page. Replaced by the functionally equivalent Music.enabled static property.
mo_hasBeatnik A boolean variable that indicated whether or not the player was installed in the user's browser. Replaced by the functionally equivalent Music.hasPlayer static property.
mo_ignoreJavaDisabled A boolean variable that specified whether or not a prompt should be displayed when Java was disabled in Netscape Navigator. Replaced by the functionally equivalent Music.ignoreJavaDisabled static property.
mo_ignoreNotReady A boolean variable that specified whether or not error messages were to be sent to the debug output if scripting was targeted to a player instance that was not yet ready.
mo_platform A string variable that represented the user's platform (operating system). Replaced by the functionally equivalent Music.clientPlatform static property.
mo_requiredMinVersion A string variable that specified the minimum player version required by a sonified page. Replaced by the Music.requireMinPlayerVersion static method and Music.requiredMinVersion read-only static property.
mo_showCompatibilityPrompt A boolean variable that specified whether or not a prompt should be displayed when the user's player configuration failed to meet a sonified page's compatibility requirements. Replaced by the functionally equivalent Music.showCompatibilityPrompt static property.
mo_silentIfInadequate A boolean variable that specified whether or not sonification on a page should be completely disabled if the user's player configuration failed to meet the page's compatibility requirements. Replaced by the functionally equivalent Music.silentIfInadequate static property.
Code Modules
Patch - Navigator 4.04 Bug A patch that was used to work around a specific bug in Netscape Navigator 4.04.

Instance Methods

 engageAudioOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   2.2.2 
 Obsoleted at Version...   3.2.0 
 Current Equivalent   Music.engageAudio 
 

The engageAudio instance method provided a way to engage or disengage the audio device used by the player's underlying audio engine.

SYNTAX    engageAudio ( AudioEngagedBOOL )

History
 fadeFromToOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   fadeVolume 
 

The fadeFromTo instance method provided a way to fade the overall playback volume of a Music Object instance from a specified starting volume to a specified ending volume over a specified amount of time.

SYNTAX    Music Object Versions 1.1.0 - 2.1.8
fadeFromTo (
    StartVolume0to100 ,
    EndVolume0to100
)

Music Object Versions 2.2.2 - 3.1.0
fadeFromTo (
    StartVolume0to100 ,
    EndVolume0to100
    FadeBOOLorFadeTimeMsINT ,
    FadeEndCallbackFunctionorJavaScriptSTR ,
    FadeStepCallbackFunctionorJavaScriptSTR
)

History
 getNoteNameOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   Music.getNoteName 
 

The getNoteName instance method provided a way to convert a MIDI note number to a corresponding musical note name.

SYNTAX    getNoteName ( NoteNumber0to127 )

History
 getNoteNumberOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   Music.getNoteNumber 
 

The getNoteNumber instance method provided a way to convert a musical note name to a corresponding MIDI note number.

SYNTAX    getNoteNumber ( NoteNameSTR )

History
 getPlatformOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   2.7.9 
 Current Equivalent   Music.clientPlatform 
 

The getPlatform instance method returned a string value, representing the user agent name of the user's browser.

SYNTAX    getPlatform ( )

History
 getReverbTypeOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.2.0 
 Current Equivalent   Music.getReverbType 
 

The getReverbType instance method returned an integer value, indicating the global reverb type that was set for the player's underlying audio engine.

SYNTAX    getReverbType ( )

History
 getVersionOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   Music.playerVersion 
 

The getVersion instance method returned a string value, indicating the version number of the player installed in the user's browser.

SYNTAX    getVersion ( )

History
 isReadyOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   ready 
 

The isReady instance method returned a boolean value, indicating whether or not a Music Object instance's player was ready for scripted control.

SYNTAX    isReady ( )

History
 playGroovoidOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   play 
 

The playGroovoid instance method provided a convenient way to play Groovoids, simply by specifying the Groovoid name using a string parameter.

SYNTAX    Music Object Versions 1.6.0 - 2.3.1
playGroovoid (
    LoopingBOOL ,
    GroovoidNameSTR
)

Music Object Versions 2.6.9 - 3.0.8
playGroovoid ( GroovoidNameSTR )

...or...

playGroovoid (
    LoopingBOOL ,
    GroovoidNameSTR
)

History
 setGlobalMuteOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.2.0 
 Current Equivalent   Music.setGlobalMute 
 

The setGlobalMute instance method provided a way to mute or unmute the global audio output of the player's underlying audio engine.

SYNTAX    setGlobalMute ( MuteStateBOOL )

History
 setReverbTypeOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.2.0 
 Current Equivalent   Music.setReverbType 
 

The setReverbType instance method provided a way to set the global reverb type for the player's underlying audio engine.

SYNTAX    setReverbType ( ReverbType1to11 )

History
 stopAllOBSOLETE

 
 CATEGORY   Instance Method 
 Status   no longer supported 
 Introduced at Version...   2.2.2 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   Music.stopAll 
 

The stopAll instance method provided a way to stop playback for all player instances in a single operation.

SYNTAX    stopAll ( )

History
IMPORTANT

The Music.stopAll static method is not functionally equivalent to the obsoleted stopAll instance method. It was decided that it was no longer desirable to provide a method that could have the effect of stopping playback of all player instances - including player instances that were not part of the document that originated the call to the method - since this could result in the sonification for one Web site interfering with the sonification of a different Web site that is contained inside a different window. So, the Music.stopAll static method was implemented so that it would only stop the playback for all the player instances contained inside the document that originated the call to the method.

Static Properties

 Music.ignoreNotReadyOBSOLETE

 
 CATEGORY   Static Property 
 Status   no longer supported 
 Introduced at Version...   3.0.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   -- none -- 
 

The Music.ignoreNotReady static property was a boolean property that specified whether or not error messages were to be sent to the debug output if scripting was targeted to a player instance that was not yet ready.

History
 Music.platformOBSOLETE

 
 CATEGORY   Static Property 
 Status   deprecated 
 Introduced at Version...   3.0.0 
 Obsoleted at Version...   3.3.0 
 Current Equivalent   Music.clientPlatform 
 

The Music.platform static property was a string property that represented the user's platform (operating system).

History
Global Functions

 mo_getNoteNameOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.getNoteName 
 

The mo_getNoteName global function provided a way to convert a MIDI note number to a corresponding musical note name.

SYNTAX    mo_getNoteName ( NoteNumber0to127 )

History
 mo_getNoteNumberOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   1.6.0 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.getNoteNumber 
 

The mo_getNoteNumber global function provided a way to convert a musical note name to a corresponding MIDI note number.

SYNTAX    mo_getNoteNumber ( NoteNameSTR )

History
 mo_hasMinVersionOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.hasMinVersion 
 

The mo_hasMinVersion global function returned a boolean value, indicating whether or not the version of the player installed in the user's browser met the minimum version specified.

SYNTAX    mo_hasMinVersion ( MinimumVersionSTR )

History
 mo_installBeatnikOBSOLETE

 
 CATEGORY   Global Function 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.installPlayer 
 

The mo_installBeatnik global function provided a way to explicitly launch the player installation process.

SYNTAX    mo_installBeatnik ( )

History
 mo_isPlayerCompatibleOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.isPlayerCompatible 
 

The mo_isPlayerCompatible global function provided a way to force Music Object to perform the compatibility test, even before any attempts were made in the authoring to embed player instances into the page.

SYNTAX    mo_isPlayerCompatible (
    MinimumVersionSTR ,
    SilentIfInadequateBOOL ,
    ShowCompatibilityPromptBOOL
)

History
 mo_magicEmbedOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   2.1.6 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.magicEmbed 
 

The mo_magicEmbed global function provided a way to embed a non-scriptable player instance that was not associated to any Music Object instance.

SYNTAX    mo_magicEmbed ( EmbedLineSTR )

History
 mo_promptCloseOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.promptClose 
 

The mo_promptClose global function provided a way to close a prompt window that was opened by the mo_promptUser function.

SYNTAX    mo_promptClose ( )

History
 mo_promptUserOBSOLETE

 
 CATEGORY   Global Function 
 Status   deprecated 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.promptUser 
 

The mo_promptUser global function provided a way to open up a non-modal dialog window to prompt the user to make a decision.

SYNTAX    Music.promptUser (
    HeadingSTR ,
    MessageSTR ,
    OkTextSTR ,
    OkJavaScriptSTR ,
    CancelTextSTR ,
    CancelJavaScriptSTR ,
    ShowStatusBarBOOL
)

History
 musicObjectOBSOLETE

 
 CATEGORY   Global Function 
 Status   no longer supported 
 Introduced at Version...   1.1.0 
 Obsoleted at Version...   3.1.0 
 Current Equivalent   Music 
 

The musicObject global function was an object constructor that provided a way to create new Music Object instances.

SYNTAX    musicObject ( ObjectNameSTR )

History
Global Variables

 mo_BeatnikTypeOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.2.2 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.playerType 
 

The mo_BeatnikType global variable was a string variable that indicated the type of browser component architecture used by the player.

History
 mo_BeatnikVersionOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.playerVersion 
 

The mo_BeatnikVersion global variable was a string variable that indicated the version number of the player installed in the user's browser.

History
 mo_browserSupportedOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.clientSupported 
 

The mo_browserSupported global variable was a boolean variable that indicated whether or not the user's browser was supported by the player.

History
 mo_debugToAlertOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.3.0 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.debugToAlert 
 

The mo_debugToAlert global variable was a boolean variable that specified whether or not error messages were to be displayed in alert boxes.

History
NOTES
 mo_debugToJavaConsoleOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.3.0 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.debugToJavaConsole 
 

The mo_debugToJavaConsole global variable was a boolean variable that specified whether or not error messages were to be displayed in the Java console.

History
NOTES
 mo_debugToStatusOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.3.0 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.debugToStatus 
 

The mo_debugToStatus global variable was a boolean variable that specified whether or not error messages were to be displayed in the window's status bar.

History
NOTES
 mo_enabledOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.enabled 
 

The mo_enabled global variable was a boolean variable that acted as a "master switch" to enable or disable sonification of a page.

History
 mo_hasBeatnikOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.2.2 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.hasPlayer 
 

The mo_hasBeatnik global variable was a boolean variable that indicated whether or not the player was installed in the user's browser.

History
 mo_ignoreJavaDisabledOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.ignoreJavaDisabled 
 

The mo_ignoreJavaDisabled global variable was a boolean variable that specified whether or not a prompt should be displayed when Java was disabled in Netscape Navigator.

History
 mo_ignoreNotReadyOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.3.1 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   -- none -- 
 

The mo_ignoreNotReady global variable was a boolean variable that specified whether or not error messages were to be sent to the debug output if scripting was targeted to a player instance that was not yet ready.

History
 mo_platformOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.clientPlatform 
 

The mo_platform global variable was a string variable that represented the user's platform (operating system).

History
 mo_requiredMinVersionOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.requireMinPlayerVersion 
 

The mo_requiredMinVersion global variable was a string variable that specified the minimum player version required by a sonified page.

History
 mo_showCompatibilityPromptOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.showCompatibilityPrompt 
 

The mo_showCompatibilityPrompt global variable was a boolean variable that specified whether or not a prompt should be displayed when the user's player configuration failed to meet a sonified page's compatibility requirements.

History
 mo_silentIfInadequateOBSOLETE

 
 CATEGORY   Global Variable 
 Status   no longer supported 
 Introduced at Version...   2.6.9 
 Obsoleted at Version...   3.0.0 
 Current Equivalent   Music.silentIfInadequate 
 

The mo_silentIfInadequate global variable was a boolean variable that specified whether or not sonification on a page should be completely disabled if the user's player configuration failed to meet the page's compatibility requirements.

History
Code Modules

 Music Object Patch - Navigator 4.04 BugOBSOLETE

 
 CATEGORY   Code Modules 
 Status   no longer supported 
 Introduced at Version...   3.1.0 
 Obsoleted at Version...   3.4.0 
 

The Music Object Patch - Navigator 4.04 Bug code module was used to work around a specific bug in Netscape Navigator 4.04.

History